﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _073
{
    public partial class Form1 : Form
    {
        private Timer reminderTimer;
        public Form1()
        {
            InitializeComponent();

            // 设置定时器
            reminderTimer = new Timer();
            reminderTimer.Interval = 24 * 60 * 60 * 1000; // 每天检查一次
            reminderTimer.Tick += new EventHandler(CheckReminder);
            reminderTimer.Start();
        }
        private void CheckReminder(object sender, EventArgs e)
        {
            DateTime now = DateTime.Now;
            // 假设我们在每月的第一天提醒用户
            if (now.Day == 20)
            {
                MessageBox.Show("每月提醒：请检查您的任务或数据！");//定时提醒
            }
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
    }
}
